// **********************************************
// * APM_DisarmMine [1.0]                       *
// * DisarmMine module for AP Mines             *
// * by Prodavec                                *
// **********************************************

// DEFINITIONS
// ----------------------------------------------

// PRE-INIT
// ----------------------------------------------

// VARIABLES
// ----------------------------------------------

// FUNCTIONS
// ----------------------------------------------

// MAIN
// ----------------------------------------------
_position = getPosATL player;

// Look around and delete explosive device
// Trigger will be triggered if it will find no device around
_explosiveDevices = (nearestObjects [_position, ["Explosive"], 3]);
if (count _explosiveDevices > 0) then
{
	deleteVehicle (_explosiveDevices select 0); // Delete explosive device
};